package com.etone.smartAudit.dto.admin;

import com.etone.smartAudit.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020-06-03 14:44:51
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "AdminDTO", description = "管理员")
public class AdminDTO extends BaseDTO implements Serializable {

    @ApiModelProperty("用户名")
    @NotBlank(message = "不能为空")
    private String account;

    @ApiModelProperty("用户名称")
    private String nickName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("角色id")
    private Integer roleId;

    @ApiModelProperty("联系方式")
    private String tel;

    @ApiModelProperty("事务所|公司id")
    private Integer companyId;

    @ApiModelProperty("事务所|公司名称")
    private String companyName;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("服务专家id")
    private List<Integer> serviceExpertIds;
}